import service from '@/utils/request'

export const createDwsTopic = (data) => {
  return service({
    url: '/dwsTopic/createDwsTopic',
    method: 'post',
    data
  })
}

export const deleteDwsTopic = (data) => {
  return service({
    url: '/dwsTopic/deleteDwsTopic',
    method: 'delete',
    data
  })
}

export const deleteDwsTopicByIds = (data) => {
  return service({
    url: '/dwsTopic/deleteDwsTopicByIds',
    method: 'delete',
    data
  })
}

export const updateDwsTopic = (data) => {
  return service({
    url: '/dwsTopic/updateDwsTopic',
    method: 'put',
    data
  })
}

export const findDwsTopic = (params) => {
  return service({
    url: '/dwsTopic/findDwsTopic',
    method: 'get',
    params
  })
}

export const getDwsTopicList = (params) => {
  return service({
    url: '/dwsTopic/getDwsTopicList',
    method: 'get',
    params
  })
}

export const getAllDwsTopics = (params) => {
  return service({
    url: '/dwsTopic/getAllDwsTopics',
    method: 'get',
    params
  })
}

export const getDwsTopic = (data) => {
  return service({
    url: '/dwsTopic/getDwsTopic',
    method: 'post',
    data
  })
}


export const initDwsTopic = () => {
  return service({
    url: '/dwsTopic/initDwsTopic',
    method: 'get',
  })
}
